import request from '@/utils/request'

// 查询订单列表
export function queryOrderList(params) {
  return request({
    url: '/admin/orderManage/list',
    method: 'post',
    data: {
      ...params
    }
  })
}

// 获取订单详情
export function queryOrderDetail(params) {
  return request({
    url: '/admin/orderManage/getInfo',
    method: 'GET',
    params
  })
}

// 退款
export function refundOrder(params) {
  return request({
    url: '/admin/orderManage/orderRefund',
    method: 'POST',
    data: {
      ...params
    }
  })
}
